Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x] Support Sections in form GraphQL queries #11466

Merged

Conversation

ryanmitchell
Copy link
Contributor

This PR adds support for sections in GraphQL queries:

query MyQuery {
  form(handle: "test") {
    title
    rules
    honeypot
    handle
    sections {
      instructions
      display
      fields {
         instructions
         type
         display
         handle
         config
         width
      }
    }
  }
}

Closes #8482

Copy link
Member

@jasonvarga jasonvarga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind adding a test to tests/GraphQL/FormTest?

@ryanmitchell
Copy link
Contributor Author

Thanks for pointing me in the right direction - I did search for tests I promise! Not sure how I missed them.

@jasonvarga jasonvarga merged commit 1a489cf into statamic:5.x Feb 18, 2025
18 checks passed
@ryanmitchell ryanmitchell deleted the feature/support-sections-in-form-graphsql branch February 18, 2025 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Form GraphQL not returning sections
2 participants